﻿using CMWVS.Core;
using EnvDTE80;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace bleissem.CMWVS.Helpers
{
    internal class IsSolutionLoaded
    {
        internal static bool Execute(Resolver resolver)
        {
            DTE2 dte2 = resolver.Get<DTE2>();
            EnvDTE.Solution solution = dte2.Solution;

            if ((null == solution) || (string.IsNullOrWhiteSpace(solution.FullName)))
            {
                return false;
            }

            return true;
        }
    }
}